package org.airlink.persistence.criteria
{
	import flex.persistence.EntityManager;
	import flex.persistence.criteria.From;
	import flex.persistence.criteria.Root;
	import flex.persistence.metamodel.EntityType;
	import org.airlink.persistence.EntityManagerImpl;
	public class RootImpl extends FromImpl implements Root
	{
		private var _type:EntityType;		
		
		public override function get clazz():Class{
			return _type.clazz;
		}
		
		public function RootImpl (type:EntityType, em:EntityManagerImpl=null,aliasIndex:int=-1)
		{	_type = type;
			super(_type.clazz, this, null, em, aliasIndex);			
		}
		
		public override function asValue():String{
			return super.asValue();
		}
		
	}
}